extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]探测平衡装置"
	att.air = 50
	att.atk = 50
	att.spd = 0.5
	att.atkRan = 2
	info = "施放技能时，使自己舰载机立即发起一次炮击(内置冷却1秒)\n[color=#DC143C]同时装备三件时可升级[/color]"
	
func _connect():
	._connect()
	masCha.connect("onCastCdSkill",self,"onCastCdSkill")

func onCastCdSkill(id):
	if enable:
		for i in masCha.summedCha:
			if i.has_method("duliSk3") and not i.isDeath:
				i.normalAtkChara(i.aiCha)
				enable = false

var enable = true
func _upS():
	enable = true

func upgrade():
	name = "[color=#FFFF00][史诗]探测平衡装置"
	att.air = 100
	att.atk = 100
	att.spd = 1
	att.atkRan = 4
	info = "施放技能时，使自己舰载机立即发起一次炮击(内置冷却1秒)"